package com.pmcc.cj.repository;

import com.pmcc.cj.entity.CjRetailer;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by tomas on 2020/10/6.
 */
public interface CjRetailerRepository extends JpaRepository<CjRetailer,String> {
    Page<CjRetailer> findAll(Specification<CjRetailer> spec, Pageable var1);
    CjRetailer findByEmployeeId(String customerId);
    CjRetailer findByIdAndFettle(String id,Integer fettle);
    List<CjRetailer> findByFettle(Integer fettle);
}
